package com.hougong.lineclient.common;

import com.alibaba.fastjson.JSONObject;
import com.hougong.lineclient.entity.MyFriendVo;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.concurrent.atomic.AtomicBoolean;

public class GlobalData {

    public static String inputUserName=null;
    public static  String inputPassword=null;
    //token
    public static String token=null;
    //当前用户id
    public static  Long uid=null;
    //正在和哪个好友对话
    public static MyFriendVo friend=null;
    public static Map<Long ,MyFriendVo> mapMyFriend=new HashMap<Long,MyFriendVo>();
    public static Map<Long,JSONObject> mapGroup=new HashMap<>();
    //正在哪个群对话
    public static Long gid=null;

    public static boolean isFirst=true;

    public static void clearData(){
        inputUserName=null;
        inputPassword=null;
        token=null;
        uid=null;
        friend=null;
        mapMyFriend.clear();
        isFirst=true;
    }
}
